﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace Lib
{
    public class ITNode
    {
        public ITPair info { get; set; }
        public ITNode parent = null;
      

        //public List<ITNode> mG = new List<ITNode>();
        


        public ITNode()
        {
           // mG.Add(new ITNode { info = info }); 
        }

        public ITNode(List<TransactionValue> infoName, List<int> tidset)
        {
            info.infoName = infoName;
            info.tidsets = tidset;

        }


        public List<ITNode> childs = new List<ITNode>();

        public List<string> getTidset()
        {
            return info.tidset;
        }

        public List<int> getTidsets()
        {
            return info.tidsets;
        }

        public string getItemset()
        {
            return info.itemset;
        }

        public List<TransactionValue> getItemsets()
        {
            return info.infoName;
        }

        //public List<ITNode> getmG(string itemset)
        //{
        //    if (info.itemset == itemset)
        //        return mG;
        //    return null;
        //}

        public int getSupp()
        {
            return info.support;
        }
    }
}
